
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>登录密码修改</title>
<meta name="viewport" content="initial-scale=1, maximum-scale=3, minimum-scale=1, user-scalable=no">
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta name="viewport" content="target-densitydpi=286, width=640, user-scalable=no" />
<meta content="telephone=no" name="format-detection" />
	<link rel="stylesheet" href="/wap/css/css.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="/wap/css/swiper3.1.0.min.css?v=1.1" />
<script type="text/javascript" src="/wap/js/1.7.2.min.js"></script>
<script src="/wap/js/index.js?v=1.7"></script>
<script type="text/javascript" src="/wap/js/wvke.js?v=1.1"></script>
<script type="text/javascript" src="__PUBLIC__/Home/js/cityselect.js"></script>
<script type="text/javascript">
		user = {
			uid: 0,rmb_over: 0,rmb_lock: 0,btc_over: 0, btc_lock: 0,eth_over: 0, eth_lock: 0,ltc_over: 0, ltc_lock: 0,doge_over: 0, doge_lock: 0,ybc_over: 0, ybc_lock: 0,email: '',name: ''
		};
		CoinRate = {"btc":7710,"ltc":"26.20","doge":"0.00141","ybc":"8.55","eth":"92.63"};		btvs(10,108158680);
		timestamp = 1488158680;
		moneyconfig = {coin:"rmb", sign:"￥"};
	</script>
<script>
		function _size(){
			document.documentElement.style.fontSize = document.documentElement.clientWidth / 10.80 + 'px';
		}
		_size();
		window.onresize = function(){
			_size();
		}
	</script>
	<!--新添加-->
	<link href="/wap/css/css.css" rel="stylesheet" />
	<!--endn 新添加-->
</head>
<body>
<div class="container">
	<div class="topz mgz"></div>
	<div class="top xi40 cen bai"><div class="icon2 fr"></div>修改登录密码<div class="topl"><a href="javascript:history.go(-1)"><img align="absmiddle" src="/wap/images/1_02.png" /></a></div></div>
	<div class="mgz bgbai bai ">
        <form name="form-pwtrade">
            <div class="jieshou1 datum bgbai xi26">
                <span class="data_txt">旧密码</span>
                <span class="xisp fl">
                    <input id="oldpassword" name="name" type="password" class="bd5 xi26" placeholder="原登录密码">
                </span>
            </div>
            <div class="jieshou1 datum bgbai xi26">
                <span class="data_txt">新密码</span>
                <span class="xisp fl">
                    <input id="newpassword" name="name" type="password" class="bd5 xi26" placeholder="新登录密码">
                </span>
            </div>
            <div class="jieshou1 datum bgbai xi26">
                <span class="data_txt">再次输入</span>
                <span class="xisp fl">
                    <input id="repassword" type="password" class="bd5 xi26" placeholder="确认新密码">
                </span>
            </div>
            <div class="denglu2 mgz cen">
                <input onClick="Update()" name="addbank" id="btn" type="button" class="an1 xi32 bai" value="提交">
            </div>
        </form>
	</div>
	<!--<div class="head head_white">
		<div class="left">
		    <a href="/user/index"><img src="/wap/images/login_icon_arrow2.png" class="icon_cha"></a>
		</div>
		<div class="title" >登录密码修改</div>
		<div class="right"></div>
	</div>
	<div id="lib_Tab1" class="mgz" >
	 <div class="lib_Contentbox lib_tabborder" style="display: none;">
	     <div id="con_one_1">
			<div class="denglu1 bgbai mg"><input name="" type="password" class="bd1 f " placeholder="135468774322"></div>
			<div class="denglu1 bgbai mg"><input name="" type="password" class="bd2 f " placeholder="请输入旧密码"></div>
			<div class="denglu1 bgbai mg"><input name="" type="password" class="bd2 f " placeholder="请输入安全密码"></div>
			<div class="denglu1 bgbai mg"><input name="" type="password" class="bd2 f " placeholder="请再次输入安全密码"></div>
			<div class="denglu2 mgz cen"><input name="" type="button" class="an1 xi28 bai" value="提交"></div>
	     </div>
	 </div>
	</div>
	<div class="main pb_0" >
		<div class="margin_lbian">
            <form id="form-pwtrade">
                <div class="form_box po_re findpw_tan">
                    <i class="form_icon  w_220">输 入 登 录 密 码</i>
                    <div>
                        <input type="password" id="oldpassword" name="name" class="input hui_a" value="" placeholder="请输入登录密码" />
                    </div>
                </div>
                <div class="form_box po_re findpw_tan">
                    <i class="form_icon  w_220">新&nbsp;&nbsp;登&nbsp;&nbsp;录&nbsp;&nbsp;密&nbsp;&nbsp;码</i>
                    <div>
                        <input type="password" id="newpassword" name="name" class="input hui_a" value="" placeholder="请输入新登录密码" />
                    </div>
                </div>
                <div class="form_box po_re findpw_tan">
                    <i class="form_icon  w_220">再次输入新密码</i>
                    <div>
                        <input type="password" id="repassword" class="input" placeholder="请再次输入新登录密码">
                    </div>
                </div>
                <div class="form_btn">
                    <input type="button" class="btn" onClick="Update()" name="addbank" id="btn" value="确认修改">
                </div>
            </form>
		</div>
	</div>-->
</div>
<script>
function Update() {
	$.post("{:U('User/uppassword')}", {
		oldpassword: $('#oldpassword').val(),
		newpassword: $('#newpassword').val(),
		repassword: $('#repassword').val()
	}, function (data) {
		if (data.status == 1) {
			alert(data.info);
			window.location = "{:U('User/index')}";
		} else {
			alert(data.info);
			if (data.url) {
				window.location = data.url;
			}
		}
	}, "json");
}
</script>
</body>
</html>